//
//  Target_TQRecord.swift
//  TQMedia
//
//  Created by XieLB on 2018/9/21.
//  Copyright © 2018年 CocoaPods. All rights reserved.
//

import Foundation

@objc class Target_TQRecord: NSObject {
    
    /// 播放本地录音接口(项目本身资源)
    @objc func Action_playLocalRecord(_ params: Dictionary<String, Any>) {
        TQRecordHelper.share().playLocalRecord(params)
    }
    
    /// 播放录音接口
    @objc func Action_playRecord(_ params: Dictionary<String, Any>) {
        TQRecordHelper.share().playRecord(params)
    }
    
    /// 停止播放接口
    @objc func Action_stopRecord(_ params: Dictionary<String, Any>) {
        TQRecordHelper.share().stopRecord(params)
    }
    
    /// 开始播放触发闭包
    @objc func Action_getPlayRecordCloser(_ params: Dictionary<String, Any>) {
        TQRecordHelper.share().getPlayRecordCloser(params)
    }
    
    /// 停止播放触发闭包
    @objc func Action_getStopRecordCloser(_ params: Dictionary<String, Any>) {
        TQRecordHelper.share().getStopRecordCloser(params)
    }
    
    /// 下载状态变化触发闭包(下载状态 1：暂停、2：下载中、3：完成)
    @objc func Action_downloadStateChangeCloser(_ params: Dictionary<String, Any>) {
        TQRecordHelper.share().downloadStateChangeCloser(params)
    }
}

